package com.eop.entity;

import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Table(name = "eop_SpecialInfor")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@NamedQueries( { @NamedQuery(name = "sInfo.getSpecialByEvent", query = "from SpecialInfor as sr where sr.siEvent.id=? and sr.delFlag=false order by special_Date desc"),
				 @NamedQuery(name = "sInfo.getAllSpecialInfo", query = "from SpecialInfor as sr where sr.delFlag=false order by special_Date desc")})
public class SpecialInfor {

	/**
	 * ID
	 */
	@Id
	private String id;

	/**
	 * 适用范围大类(未用)
	 */
	private String event_RangeB;

	/**
	 * 适用范围细类(未用)
	 */
	private String event_RangeS;

	/**
	 * 波及范围
	 */
	private String special_Scope;

	/**
	 * 伤人数
	 */
	private String special_Injury;

	/**
	 * 死亡人数
	 */
	private String special_Death;

	/**
	 * 财产损失
	 */
	private String special_Property;

	/**
	 * 影响人数
	 */
	private String special_Affect;

	/**
	 * 安置人数
	 */
	private String special_Set;

	/**
	 * 持续天数
	 */
	private String special_Continuous;

	/**
	 * 所属部门
	 */
	private String special_Dep;

	/**
	 * 特殊内容
	 */
	@Basic(fetch = FetchType.LAZY)
	@Column(columnDefinition = "text")
	private String special_Content;

	/**
	 * 特殊信息记录时间
	 */
	private Date special_Date;

	/**
	 * 创建者
	 */
	private String createUser;

	/**
	 * 创建时间
	 */
	private Date createDate;

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "eventId")
	private Event siEvent;

	private boolean delFlag;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getEvent_RangeB() {
		return event_RangeB;
	}

	public void setEvent_RangeB(String eventRangeB) {
		event_RangeB = eventRangeB;
	}

	public String getEvent_RangeS() {
		return event_RangeS;
	}

	public void setEvent_RangeS(String eventRangeS) {
		event_RangeS = eventRangeS;
	}

	public String getSpecial_Scope() {
		return special_Scope;
	}

	public void setSpecial_Scope(String specialScope) {
		special_Scope = specialScope;
	}

	public String getSpecial_Injury() {
		return special_Injury;
	}

	public void setSpecial_Injury(String specialInjury) {
		special_Injury = specialInjury;
	}

	public String getSpecial_Death() {
		return special_Death;
	}

	public void setSpecial_Death(String specialDeath) {
		special_Death = specialDeath;
	}

	public String getSpecial_Property() {
		return special_Property;
	}

	public void setSpecial_Property(String specialProperty) {
		special_Property = specialProperty;
	}

	public String getSpecial_Affect() {
		return special_Affect;
	}

	public void setSpecial_Affect(String specialAffect) {
		special_Affect = specialAffect;
	}

	public String getSpecial_Set() {
		return special_Set;
	}

	public void setSpecial_Set(String specialSet) {
		special_Set = specialSet;
	}

	public String getSpecial_Continuous() {
		return special_Continuous;
	}

	public void setSpecial_Continuous(String specialContinuous) {
		special_Continuous = specialContinuous;
	}

	public String getSpecial_Dep() {
		return special_Dep;
	}

	public void setSpecial_Dep(String specialDep) {
		special_Dep = specialDep;
	}

	public String getSpecial_Content() {
		return special_Content;
	}

	public void setSpecial_Content(String specialContent) {
		special_Content = specialContent;
	}

	public Date getSpecial_Date() {
		return special_Date;
	}

	public void setSpecial_Date(Date specialDate) {
		special_Date = specialDate;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Event getSiEvent() {
		return siEvent;
	}

	public void setSiEvent(Event siEvent) {
		this.siEvent = siEvent;
	}

	public boolean isDelFlag() {
		return delFlag;
	}

	public void setDelFlag(boolean delFlag) {
		this.delFlag = delFlag;
	}
}
